package com.gp.wjy.controller;

import com.gp.entity.Property;
import com.gp.wjy.service.PropertyService;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (Property)表控制层
 *
 * @author makejava
 * @since 2024-04-22 17:24:23
 */
@Controller
@RequestMapping("property")
public class PropertyController {
    /**
     * 服务对象
     */
    @Resource
    private PropertyService propertyService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("/select")
    public ResponseEntity<Property> queryById(Long id) {
        return ResponseEntity.ok(this.propertyService.queryById(id));
    }


}

